project(swegl_lib)

# source files
file(GLOB_RECURSE lib_srcs "src/*.cpp")
#set(lib_srcs src/assert.cpp src/profiling.cpp src/renderer.cpp src/math/functions.cpp src/math/matrix3x3.cpp src/math/matrix4x4.cpp src/math/quaternion.cpp)

# header files
file(GLOB_RECURSE lib_headers "inc/*.h")

# create group for visual studio
source_group("inc" FILES ${lib_headers})
source_group("src" FILES ${lib_srcs})

#message("src files: ${lib_srcs}")
#message("inc files: ${lib_headers}")

# add include directory to path
include_directories(inc)

set(the_target "swegl")

add_library(${the_target} STATIC ${lib_srcs} ${lib_headers})

